/*
 * @LastEditTime: 2024-09-28 14:38:26
 * @Description: 
 * @Date: 2024-09-27 01:43:53
 * @Author: wangshan
 * @LastEditors: wangshan
 */
import request from "@/utils/request";
import qs from "qs";

//标签
// 新增
export function addService(data) {
  return request({
    url: "/starlight/customerServiceConfig",
    method: "post",
    data: data,
  });
}

// 获取变量详情
export function getServiceDetail(id) {
  const url = id ? "/starlight/customerServiceConfig/" + id : "/starlight/customerServiceConfig"
  return request({
    url,
    method: "get",
    headers: {
      "Content-Type": "application/x-www-form-urlencoded",
    },
  });
}

// 修改客服详情
export function updateServiceDetail(data) {
  return request({
    url: "/starlight/customerServiceConfig",
    method: "put",
    data,
  });
}

